﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using UniversityStudentManagemnetSystem.DAO.Gateway;

namespace UniversityStudentManagemnetSystem.BLL
{
    public class ResetManager
    {
        public string ResetCourses()
        {
           ResetGateway gateway=new ResetGateway();
            DataTable classScheduleTable = gateway.GetScheduleClass();
            DataTable assignCoursetable = gateway.GetAllAssignCourse();
            bool reset = gateway.Reset(classScheduleTable, assignCoursetable);
            if (reset)
            {

                return "Congartulation! Reset Completed Successfully";
            }
            else
            {
                return "Reset Not Done!"; 
            }
            
        }
    }
}